package com.redis.base.multiple;

import java.util.Properties;

import org.springframework.stereotype.Component;


@Component
public class RedisConfig extends Properties {
	
	private String hostName;
	private int port;
	private String password;
	private int maxIdle;
	private int minIdle;
	private int maxTotal;
	private int database;
	private int maxWaitMillis;
	private boolean testOnBorrow;
	private boolean testOnReturn;
	private int timeout;
	private boolean enable;
	private boolean spin;
	private Integer spinNum;
	private Integer lockExpire;
	private Long expire;
	private Integer spinThreadTime;
	private boolean testWhileIdle;
	
	private int timeBetweenEvictionRunsMillis;
	private int numTestsPerEvictionRun;
	private int minEvictableIdleTimeMillis;
	
	public String getHostName() {
		return hostName;
	}
	public void setHostName(String hostName) {
		this.hostName = hostName;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getMaxIdle() {
		return maxIdle;
	}
	public void setMaxIdle(int maxIdle) {
		this.maxIdle = maxIdle;
	}
	public int getMaxTotal() {
		return maxTotal;
	}
	public void setMaxTotal(int maxTotal) {
		this.maxTotal = maxTotal;
	}
	public int getDatabase() {
		return database;
	}
	public void setDatabase(int database) {
		this.database = database;
	}
	public int getMaxWaitMillis() {
		return maxWaitMillis;
	}
	public void setMaxWaitMillis(int maxWaitMillis) {
		this.maxWaitMillis = maxWaitMillis;
	}
	public boolean isTestOnBorrow() {
		return testOnBorrow;
	}
	public void setTestOnBorrow(boolean testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}
	public int getTimeout() {
		return timeout;
	}
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	public boolean isEnable() {
		
		return enable;
	}
	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	public boolean isSpin() {
		return spin;
	}
	public void setSpin(boolean spin) {
		this.spin = spin;
	}
	public Integer getSpinNum() {
		return spinNum;
	}
	public void setSpinNum(Integer spinNum) {
		this.spinNum = spinNum;
	}
	public Integer getLockExpire() {
		return lockExpire;
	}
	public void setLockExpire(Integer lockExpire) {
		this.lockExpire = lockExpire;
	}
	public Long getExpire() {
		return expire;
	}
	public void setExpire(Long expire) {
		this.expire = expire;
	}
	public Integer getSpinThreadTime() {
		return spinThreadTime;
	}
	public void setSpinThreadTime(Integer spinThreadTime) {
		this.spinThreadTime = spinThreadTime;
	}
	public int getMinIdle() {
		return minIdle;
	}
	public void setMinIdle(int minIdle) {
		this.minIdle = minIdle;
	}
	public boolean isTestOnReturn() {
		return testOnReturn;
	}
	public void setTestOnReturn(boolean testOnReturn) {
		this.testOnReturn = testOnReturn;
	}
	public boolean isTestWhileIdle() {
		return testWhileIdle;
	}
	public void setTestWhileIdle(boolean testWhileIdle) {
		this.testWhileIdle = testWhileIdle;
	}
	public int getTimeBetweenEvictionRunsMillis() {
		return timeBetweenEvictionRunsMillis;
	}
	public void setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) {
		this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;
	}
	public int getNumTestsPerEvictionRun() {
		return numTestsPerEvictionRun;
	}
	public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun) {
		this.numTestsPerEvictionRun = numTestsPerEvictionRun;
	}
	public int getMinEvictableIdleTimeMillis() {
		return minEvictableIdleTimeMillis;
	}
	public void setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) {
		this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;
	}
	
}
